//
//  DecorateSonTableViewCell.m
//  PerfectWorld
//
//  Created by dllo on 16/8/31.
//  Copyright © 2016年 LST. All rights reserved.
//

#import "DecorateSonTableViewCell.h"
#import "Img.h"
#import "UIImageView+WebCache.h"
@implementation DecorateSonTableViewCell

- (void)setImg:(Img *)img {
    _img = img;
    NSString *str = img.photoId;
    NSString *str1 = [str substringToIndex:3];
    [_mainImageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://image.gooju.cn/images/%@/9/%@_0_9-.jpg", str1, str]] placeholderImage:nil];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self layoutIfNeeded];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
